/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package org.firestorm.traficforecast.astar;

import org.firestorm.traficforecast.database.Road;

/**
 *
 * @author HMT
 */
public class Way {
    private Road road;
    private Way parent;
    private double cost;
    private double costEstimate;
    
    public Way(){
        
    }
    
    public Way(Road road, Way parent, double cost, double costEstimate) {
        this.road = road;
        this.parent = parent;
        this.cost = cost;
        this.costEstimate = costEstimate;
    }
    
    public Road getRoad() {
        return road;
    }

    public Way getParent() {
        return parent;
    }

    public double getCost() {
        return cost;
    }

    public double getCostEstimate() {
        return costEstimate;
    }

    public void setRoad(Road road) {
        this.road = road;
    }

    public void setParent(Way parent) {
        this.parent = parent;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }

    public void setCostEstimate(double costEstimate) {
        this.costEstimate = costEstimate;
    }
    
}
